package com.eastdigit.system.inter;

import com.eastdigit.system.model.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface MenuMapper {
	int deleteByPrimaryKey(String id);

	int insert(Menu menu);

	Menu selectByPrimaryKey(String id);

	int updateByPrimaryKeySelective(Menu menu);

	int updateByPrimaryKey(Menu menu);
	
	List<Menu> selectMenuOfUser(@Param("userId") String userId);

	List<Menu> selectAll();

	List<Menu> selectAllFunctions();

}
